{extend name="wmcommon/menu" /}

{block name="selfcss"}<link rel="stylesheet" href="__STATIC__/wm_index/css/wm/newsDetails.css">{/block}


{block name='title'}{$news.title}{/block}
{block name='keywords'}{$news.title}，最新研学旅行资讯,研学旅行最新新闻{/block}
{block name='description'}{$news.title}，未名研学资讯信息频道，提供研学旅行最新的资讯信息，政策解读，研学动态，行业新闻，了解更多研学行业信息，尽在未名研学网。{/block}


{block name="maincontent"}
<!-- 热点关注 -->
<div id="silvertrack_box">
    <div class="content">
        <p class="title">
            <span>热点关注</span>
            <img src="__STATIC__/wm_index/images/wm/icon_horn.png" alt="">
        </p>
        <div class="swiper-container silvertrack" id="silvertrack_">
            <div class="swiper-wrapper">

                <?php if(!empty($aryRecommendHot)){foreach($aryRecommendHot as $k=>$v){?>
                <div class="swiper-slide">
                    <a href="<?php echo url("/newsdetails",array("id"=>$v["id"]))?>"><?php echo $v["title"]?></a>&nbsp;&nbsp;
                </div>
                <?php }}?>
            </div>
        </div>
    </div>
</div>
<div class="layout">
    <div class="layout_left">
        <!-- 面包屑导航 -->
        <p class="crumbs">
            <a href="http://www.wmyanxue.com">未名研学</a>
            &nbsp;•&nbsp;
            <a href="http://www.wmyanxue.com/yanxuexinwen/p1/">研学新闻</a> > </p>
        <div class="article_box">
            <h1 class="more_row">{$news.title ?: ''}</h1>
            <div class="flex">
                <div class="left">
                    <p class="source">来源：{$news.source ?: ''}</p>
                    <p class="time">时间：{$news.create_at|format_datetime='Y-m-d'}</p>
                </div>
                <div class="right">
                    <p>
                        <img src="__STATIC__/wm_index/images/wm/icon_small_icons1.png" alt="">
                        <span id="hits"></span>&nbsp;浏览
                    </p>
                    <!--<p>
                        <img src="__STATIC__/wm_index/images/wm/icon_small_icons5.png" alt="">
                        <span>分享</span>
                    </p>
                    <p>
                        <img src="__STATIC__/wm_index/images/wm/icon_small_icons6.png" alt="">
                        <span>手机浏览</span>
                    </p>-->
                </div>
            </div>
            <div class="quotes">
                <img class="mark" src="__STATIC__/wm_index/images/wm/icon_double_quotes_left.png" alt="">
                <div class="txt">
                    <p> {$news.desc ?: ''}</p>
                </div>
            </div>
            <div class="article_content">
                {$news.content|raw|default=''}
            </div>
            <p class="link">文章链接：<?php echo WEB_DOMAIN.url("/newsdetails",array("id"=>$news["id"]))?></p>
            <div class="btns">
                <!--<p class="btn">
                    <img src="__STATIC__/wm_index/images/wm/icon_start_white.png" alt="">
                    <span>收藏</span>
                </p>
                <p class="btn">
                    <img src="__STATIC__/wm_index/images/wm/icon_zan_white.png" alt="">
                    <span>点赞</span>
                </p>-->
            </div>
            <div class="recommend">
                <p class="title">推荐阅读</p>
                <?php if(!empty($aryRecommendRand)){foreach($aryRecommendRand as $k=>$v){?>
                <a class="cell a_row" href="<?php echo url("/newsdetails",array("id"=>$v["id"]))?>"><?php echo $v["title"]?></a>
                <?php }}?>

            </div>
            <ul class="nav">
                {if empty(newspre($news.id,$news.pid))}
                <li>上一篇：没有了</li>
                {else}
                {php}$newsid = newspre($news['id'],$news['pid'])['id'];{/php}
                <li><a href='{:url("/newsdetails/$newsid")}'>上一篇：{:newspre($news.id,$news.pid)['title']}</a></li>
                {/if}
                {if empty(newsnext($news.id,$news.pid))}
                <li>下一篇：没有了</li>
                {else}
                {php}$newsid = newsnext($news['id'],$news['pid'])['id'];{/php}
                <li><a href='{:url("/newsdetails/$newsid")}'>下一篇：{:newsnext($news.id,$news.pid)['title']}</a></li>
                {/if}
            </ul>
        </div>
        <div class="module">
            <div class="title"><span>阅读延伸</span></div>
            <div class="list">
                <?php if(!empty($aryRecommendRead)){foreach($aryRecommendRead as $k=>$v){?>
                <a class="cell" href="<?php echo url("/newsdetails",array("id"=>$v["id"]))?>">
                    <div class="time">
                        <p class="day"><?php echo date("d",strtotime($v["create_at"]))?></p>
                        <div>
                            <p><?php echo date("m",strtotime($v["create_at"]))?></p>
                            <p><?php echo date("Y",strtotime($v["create_at"]))?></p>
                        </div>
                    </div>
                    <p class="name two_row">“<?php echo $v["title"]?></p>
                </a>
                <?php }}?>
            </div>
            <div class="title">
                <span>课程剪影</span>
                <a class="more" href="<?php echo url("/item/12")?>">更多&#62;&#62;</a>
            </div>
            <div class="albums">
                <div class="right">
                    <?php if(!empty($aryRecommend)){foreach($aryRecommend as $k=>$lesson){?>
                    <a class="image" href="<?php echo url("/lesson",array("id"=>$lesson["id"]))?>">
                        <img src="<?php echo $lesson["cover"]?>" alt="<?php echo $lesson["title"]?>">
                    </a>
                    <?php }}?>
                </div>

            </div>
        </div>
    </div>
    <div class="layout_right">
        <div class="tel_box">
            <p class="txt">全国研学教育报名咨询热线</p>
            <p class="tel">400-008-1926</p>
        </div>
        <!-- mark -->
        <div class="marks">
            <a class="mark" href="http://www.wmyanxue.com/products/service.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark1.jpg" alt="研学实践教育解决方案"></p>
                <p class="txt a_row">研学实践教育解决方案</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/course/p1/">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark2.jpg" alt="研学课程"></p>
                <p class="txt a_row">研学课程</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/products/service.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark3.jpg" alt="营地开发"></p>
                <p class="txt a_row">营地开发</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/products/college.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark4.jpg" alt="研学实践导师培训"></p>
                <p class="txt a_row">导师培训</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/yixiang.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark5.jpg" alt="提交意向"></p>
                <p class="txt a_row">提交意向</p>
            </a>
        </div>
        <!--  -->
        <div class="news_box">
            <ul class="tab">
                <li class="tab_item on">一周要闻</li>
                <!--<span>/</span>
                <li class="tab_item">本月最热</li>-->
            </ul>
            <ul class="list">
                <?php if(!empty($aryRecommendNews)){foreach($aryRecommendNews as $k=>$v){?>
                <li class="cell">
                    <span class="num"><?php echo $k+1;?></span>
                    <a class="title a_row" href='<?php echo url("/newsdetails",array("id"=>$v["id"]))?>'><?php echo $v["title"]?></a>
                </li>
                <?php }}?>
            </ul>
            <a class="more" href="<?php echo url("/item/13")?>">查看更多&#62;&#62;</a>
        </div>
        <!--  -->
        <div class="hot_box">
            <div class="title">
                <p class="left">
                    <img src="__STATIC__/wm_index/images/wm/icon_hot.png" alt="">
                    <span>热门课程</span>
                </p>
                <a class="more" href="<?php echo url("/item/12")?>">更多&#62;&#62;</a>
            </div>
            <div class="list">
                <?php if(!empty($aryRecommend)){foreach($aryRecommend as $lesson){?>
                <a class="cell" href="<?php echo url("/lesson",array("id"=>$lesson["id"]))?>">
                    <p class="image"><img src="<?php echo $lesson["cover"]?>" alt="<?php echo $lesson["title"]?>"></p>
                    <div class="info">
                        <p class="name two_row"><?php echo $lesson["title"]?></p>
                        <div class="flex">
                            <p class="marks_box">
                                <?php if(!empty($lesson['cover_desc'])){?>

                            <span class="mark"><?php echo json_decode($lesson['cover_desc'],true)[0] ?: '';?></span>
                                <?php }?>

                            </p>
                            <!--<span class="time"><?php //echo $lesson["cover_desc"]?></span>-->
                        </div>
                    </div>
                </a>
                <?php }}?>

            </div>
        </div>
    </div>
</div>

{/block}

